package priv.pfz.sbv.spring;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yyjxp
 * 2024/2/18 0:46
 */
public class SbvClassPathXmlApplicationContext extends ClassPathXmlApplicationContext {
    public SbvClassPathXmlApplicationContext(String configLocation) throws BeansException {
        super(configLocation);
    }

    @Override
    protected DefaultListableBeanFactory createBeanFactory() {
        return new SbvBeanFactory(getInternalParentBeanFactory());
    }
}
